From b810be83d3542b497237b55df8c98399b2127a8f Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sun, 2 Aug 2020 10:06:30 -0600 Subject: [PATCH] fix a few gcc10 warnings. --- jeeps/gpsapp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeeps/gpsapp.cc b/jeeps/gpsapp.cc index 3802df7c8..3e66604f5 100644 --- a/jeeps/gpsapp.cc +++ b/jeeps/gpsapp.cc @@ -2375,7 +2375,7 @@ static void GPS_D108_Send(UC* data, GPS_PWay way, int32* len) p+=sizeof(int32); if (way->alt_is_unknown) { - GPS_Util_Put_Float(p,(const float) 1.0e25); + GPS_Util_Put_Float(p, 1.0e25f); } else { GPS_Util_Put_Float(p,way->alt); } @@ -2460,7 +2460,7 @@ static void GPS_D109_Send(UC* data, GPS_PWay way, int32* len, int protoid) GPS_Util_Put_Int(p,GPS_Math_Deg_To_Semi(way->lon)); p+=sizeof(int32); if (way->alt_is_unknown) { - GPS_Util_Put_Float(p,(const float) 1.0e25); + GPS_Util_Put_Float(p, 1.0e25f); } else { GPS_Util_Put_Float(p,way->alt); } -- 2.30.2